package io.finer.erp.jeecg.bas.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import io.finer.erp.jeecg.bas.entity.ZzShoporder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * @Description: 车间任务/订单
 * @Author: jeecg-boot
 * @Date:   2020-09-02
 * @Version: V1.0
 */
public interface ZzShoporderMapper extends BaseMapper<ZzShoporder> {

    @Select("select * from zz_shopOrder where wo_Code= #{code}")
    ZzShoporder getShopOrderByCode(@Param("code") String code);

    /**
     * 根据销售订单编号查询任务单信息
     * @return
     */
    @Select("select * from zz_shopOrder where order_no= #{orderNo}")
    List<ZzShoporder> getShopOrderByOrderNo(@Param("orderNo")String orderNo);


}
